.card {
  background-color: var(--theme-bg-card);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.cardImage {
  width: 96px;
  height: 128px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  flex-shrink: 0;

  .itemImage {
    width: 100%;
    height: 100%;
    background-color: var(--theme-bg-card);
    border: 1px solid var(--theme-border-primary);
    border-radius: 8px;
    position: relative;
    cursor: pointer;
  }

  :global {
    .adm-image {
      border-radius: 8px;
    }
  }

  .classifyWorld {
    position: absolute;
    top: 0;
    left: 0;
    height: 16px;
    border-radius: 8px 0px 8px 0px;
    font-family: PingFang SC, PingFang SC;
    font-weight: 600;
    font-size: 10px;
    padding: 2px 5px;
    color: var(--theme-text-primary);
    display: inline-block;
  }

  .defaultWorldBgc {
    background: var(--adm-color-primary);
  }
  .mixWorldBgc {
    background: var(--theme-accent-info);
  }
  .infiniteWorld {
    padding: 8px;
    background: none;
    background-image: url('~@/assets/images/infiniteWorld-icon.jpg');
    background-size: 100% 100%;
    color: var(--adm-color-primary);
  }
}

.cardContent {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cardHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
}

.cardTitle {
  font-size: 18px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
  color: var(--theme-text-primary);
  margin: 0;
}

.deleteBtn {
  background-color: var(--theme-bg-secondary);
  color: var(--theme-accent-warning);
  border: none;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  
  &:hover {
    background-color: var(--theme-bg-hover);
  }
}

.cardSubtitle {
  color: var(--theme-text-muted);
  font-size: 14px;
  margin: 0 0 8px 0;
}

.cardDescription {
  color: var(--theme-text-muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.3s ease;
  
  &.expanded {
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
  }
}

.cardActions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.relative {
  position: relative;
}

.iconBtn {
  background-color: var(--theme-bg-secondary);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: none;
  color: var(--theme-text-primary);
  
  &:hover {
    background-color: var(--theme-bg-hover);
  }
}

.dialogBtn {
  background-color: var(--theme-primary);
  color: var(--theme-text-primary);
  border: none;
  padding: 8px 24px;
  border-radius: 20px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 500;
  
  &:hover {
    background-color: var(--theme-primary-hover);
  }
}

.publishIcon {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 32px;
  height: 32px;
  background-image: url('~@/assets/images/publish-icon.jpg');
  background-size: 100% 100%;
}

.cancelClass {
  color: var(--theme-text-muted)666;
  font-size: 14px;
}

.confirmClass {
  font-size: 14px;
}
// 删除弹窗样式 - 与header-nav返回弹窗样式一致
:global {
  .header-nav-dialog {
    
    .adm-dialog {
      background: var(--theme-bg-card) !important;
      border-radius: 12px !important;
      border: none !important;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
      overflow: hidden !important;
      position: relative !important;
    }
    
    // 右上角关闭按钮
    .adm-dialog-close {
      position: absolute !important;
      top: 16px !important;
      right: 16px !important;
      width: 24px !important;
      height: 24px !important;
      background: transparent !important;
      border: none !important;
      color: var(--theme-text-primary) !important;
      font-size: 18px !important;
      cursor: pointer !important;
      z-index: 10 !important;
      
      &:hover {
        opacity: 0.7 !important;
      }
    }
    
    .adm-dialog-content {
      color: var(--theme-text-primary) !important;
      font-size: 16px !important;
      padding: 24px 24px 20px 24px !important;
      text-align: center !important;
      line-height: 1.5 !important;
      margin-top: 8px !important;
    }
    
    .adm-dialog-button {
      color: var(--theme-text-primary) !important;
      font-weight: 500 !important;
      font-size: 16px !important;
      height: 48px !important;
      border: none !important;
      background: transparent !important;
      border-radius: 24px !important;
      margin: 0 16px 8px 16px !important;
      width: calc(100% - 32px) !important;
      
      &:active {
        opacity: 0.8 !important;
      }
      
      // 确定按钮样式（主题色背景）
      &:last-child {
        background: var(--theme-primary) !important;
        color: var(--theme-text-primary) !important;
        font-weight: 600 !important;
        margin-bottom: 16px !important;
        
        &:active {
          background: var(--theme-primary-hover) !important;
        }
      }
      
      // 取消按钮样式（透明背景）
      &:first-child {
        color: var(--theme-text-muted) !important;
        background: transparent !important;
        border: 1px solid var(--theme-border-primary) !important;
        
        &:active {
          opacity: 0.7 !important;
        }
      }
    }
    
    .adm-dialog-button-wrapper {
      border-top: none !important;
      display: flex !important;
      flex-direction: column !important;
      padding: 0 !important;
      background: transparent !important;
    }
    
    .adm-center-popup-body {
      //background-color: transparent !important;
    }
    
    .adm-dialog-body {
      padding: 0 !important;
    }
    
    .adm-center-popup-wrap {
      background-color: transparent !important;
    }
  }
  .adm-dialog-footer{
    .adm-dialog-action-row{
      display: block !important;
      border: none !important;
    }
  }
  .adm-center-popup {
    --background-color: var(--theme-bg-secondary) !important;
  }
  .header-nav-dialog .adm-dialog-button:first-child{
    background-color: var(--theme-bg-secondary) !important;
    border: none !important;
    border-radius: 10px !important;
  }
  .header-nav-dialog .adm-dialog-button:last-child{
    border-radius: 10px !important;
  }
}

:global{
  .adm-search-bar-input{
    background-color: transparent !important;
    border: none !important;
  }
  .adm-search-bar-suffix{
    color: var(--theme-text-primary) !important;
  }
}